<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="人员情况分析">
            <div class="row wrapper-y-sm">
                <div class="search-bar wrapper-none col-xs-12">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search(1)" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.agentPersonConfigExport">
                            <div title="导出" yb-download download-url="exportParam.allUrl">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs"
                        ng-click="switchToolbar('showAgentAdSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" ng-model="condition.companyNameLike" class="form-control txt-search"
                            placeholder="代理商">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)">搜索</span>
                    </div>
                </div>
                <div yb-advance-search show-toolbar="toolbarConfig.showAgentAdSearch" search-data="search(1)"
                    reset-data="reset()">
                    <div class="advance-search m-t-sm">
                        <div class="form-group clearfix">
                            <label class="control-label">岗位：</label>
                            <div check-box-selector ng-model="jobNames" value-list="jobList" box-click="selectJob()"
                                default-value="请选择岗位" class="col-xs-7 wrapper-none dropdown-prop"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed" style="height:82px;">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="60" title="序号" style="height:82px;">序号</th>
                                    <th width="140" title="代理商" style="height:82px;">代理商</th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" style="height:82px;" ng-style="{left:tableConfig.fixedWidth+'px'}">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th class="text-center"
                                        ng-repeat="item in tableConfig.firstTableCol track by $index"
                                        width="{{item.width}}" colspan="{{item.colSpan}}" title="{{item.name}}">
                                        {{item.name}}
                                    </th>
                                </tr>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.secondTableCol track by $index"
                                        class="border-top" width="{{itemCol.width}}" title="{{itemCol.name}}">
                                        {{itemCol.name}}
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0" style="top:82px;">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index" ng-click="selectRow($index)"
                                    ng-class="{'row-selected': $index === markInfo.curRow}">
                                    <td class="spill-dots" width="60" title="{{$index+1}}">{{$index+1}}</td>
                                    <td class="spill-dots" width="140" title="{{item.orgName}}">{{item.orgName}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" style="top:82px;"
                        ng-style="{left:tableConfig.fixedWidth+'px'}">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index" ng-click="selectRow($index)"
                                    ng-class="{'row-selected': $index === markInfo.curRow}">
                                    <td class="spill-dots"
                                        ng-repeat="itemCol in tableConfig.secondTableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                        <div class="spill-dots">
                                            <span>{{item[itemCol.dataField]}}</span>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0" style="top:82px;">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
    </div>
</div>